﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Admin_top : BLL.AdminPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            lit_timenow.Text = String.Format(" 今天是：{0} {1}",DateTime.Now.ToString("yyyy年MM月dd日"),DateTime.Today.DayOfWeek.ToString());
            lit_admin.Text = Session["Admin"].ToString();
        }
    }
    protected void btnLogout_Click(object sender, ImageClickEventArgs e)
    {
        Session.Remove("Admin");
        Page.ClientScript.RegisterStartupScript(GetType(), "", "alert('系统已退出，请关闭窗口！')", true);
    }
}
